// CommonDrawer 组件样式

.common-drawer {
  // 抽屉样式
  &-container {
    border-radius: 12px 0 0 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }

  // 默认底部工具栏样式
  &-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #fafafa;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  // 取消按钮样式
  &-cancel-btn {
    border-radius: 8px;
    height: 36px;
    font-size: 14px;
  }

  // 确认按钮样式
  &-confirm-btn {
    border-radius: 8px;
    height: 36px;
    font-size: 14px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
  }

  // 内容区域样式
  &-content {
    padding: 24px;
    background: '#ffffff';
  }

  // 全局样式覆盖
  :global {
    // 抽屉容器样式
    .ant-drawer {
      .ant-drawer-content-wrapper {
        overflow: hidden;
      }

      .ant-drawer-content {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 100%;
      }
    }

    // 抽屉头部样式
    .ant-drawer-header {
      border-bottom: 1px solid #f0f0f0;
      background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
      padding: 20px 24px;
      flex-shrink: 0;
    }

    // 抽屉主体样式
    .ant-drawer-body {
      padding: 24px;
      background: #fff;
      position: relative;
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      box-sizing: border-box;
    }

    // 抽屉底部样式
    .ant-drawer-footer {
      flex-shrink: 0;
      border-top: 1px solid #f0f0f0;
      background: #fafafa;
    }
  }
}
